package com.jsh.erp.datasource.mappers;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jsh.erp.datasource.entities.Client;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;



/**
 * @author: WangSaiChao
 * @date: 2018/5/27
 * @description: 客户端dao层
 */
@Mapper
public interface ClientMapper extends BaseMapper<Client> {

    /**
     * 根据clientId查询客户端信息
     * @param clientId
     * @return
     */
    Client findByClientId(@Param("clientId") String clientId);

    /**
     * 根据clientSecret查询客户端信息
     * @param clientSecret
     * @return
     */
    Client findByClientSecret(@Param("clientSecret") String clientSecret);
}
